<template>
	<view>
		<web-view :src="webViewUrl" @message="receiveMessage"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webViewUrl: ''
			};
		},
		onLoad(data){
			if(data.url){
				this.webViewUrl = decodeURIComponent(data.url)
			}
		},
		methods:{
			receiveMessage(e){
				// if(e.detail.data[0]&&e.detail.data[0].subscribe==0){
				// 	uni.showModal({
				// 		title: '需要关注公众号才能收到消息哟~'
				// 	})
				// }
			}
		}
	}
</script>

<style lang="scss">

</style>
